/** @type {import('next').NextConfig} */
const nextConfig = {
  images: {
    domains: [
      'imageenhan.cn-shanghai.aliyuncs.com', // 阿里云图像增强服务域名
      'localhost',
    ],
    remotePatterns: [
      {
        protocol: 'https',
        hostname: '**',
      },
    ],
  },
  env: {
    ALIYUN_ACCESS_KEY_ID: process.env.ALIYUN_ACCESS_KEY_ID,
    ALIYUN_ACCESS_KEY_SECRET: process.env.ALIYUN_ACCESS_KEY_SECRET,
  },
};

export default nextConfig;
